package com.canbot.u05.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.canbot.u05.R;
import com.canbot.u05.utils.Config;

public class CVVDialogActivity extends BaseActivityNoTitle {

        private RelativeLayout mLayoutHead;

        private Button mBack;

        private TextView mTextView;

        private ImageView imageView;

        private TextView textView;

        @Override
        protected void onCreate(Bundle savedInstanceState) {

                super.onCreate(savedInstanceState);
                setContentView(R.layout.cvvd_activity);
                initView();
        }

        private void initView() {
                mLayoutHead = (RelativeLayout) findViewById(R.id.head_language);
                mBack = (Button) mLayoutHead.findViewById(R.id.btn_head_back);
                mTextView = (TextView) mLayoutHead.findViewById(R.id.tv_head);
                mTextView.setText("自定义声控对话");
                mBack.setOnClickListener(new OnClickListener() {

                        @Override
                        public void onClick(View v) {
                                finish();

                        }
                });
                imageView = (ImageView) findViewById(R.id.iv_shownoadd);
                imageView.setOnClickListener(new OnClickListener() {

                        @Override
                        public void onClick(View v) {
                                Intent mIntent = new Intent(CVVDialogActivity.this, CVVDialogEditActivity.class);
                                startActivity(mIntent);
                                CVVDialogActivity.this.finish();

                        }
                });


                textView= (TextView) findViewById(R.id.iv_showfristtxt);
                String a = getResources().getString(R.string.teach_uu_first_word);
                String b = String.format(a, Config.ROBOT_NAME);
                textView.setText(b);

        }

}
